package io.ken.im.common.domain.enums;

/**
 * @author: ken
 * @description: 消息监听类型
 * @date 2023-12-27
 **/
public enum IMListenerType {
    /**
     * 所有消息
     */
    ALL(0, "all"),
    /**
     * 私聊消息
     */
    PRIVATE_MESSAGE(1, "private message"),
    /**
     * 群聊消息
     */
    GROUP_MESSAGE(2, "group message");

    private final Integer code;
    private final String desc;

    IMListenerType(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer code() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
